package com.itheima.model.vo;

import com.itheima.model.domain.Options;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class OptionsVo implements Serializable {
    private String id;//问卷编号
    private String option;//问卷名称
    public static OptionsVo init(Options rOption){
        OptionsVo optionsVo = new OptionsVo();
        optionsVo.setId(rOption.getId().toString());
        optionsVo.setOption(rOption.getOpt());
        return optionsVo;
    }
}